package com.brillilab.dao.mapper.experiments;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.brillilab.domain.po.experiments.PlateGridReagent;
import com.brillilab.domain.vo.experiments.Alias;
import com.brillilab.domain.vo.experiments.PlateGridReagentVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 多孔板孔个体内容 Mapper 接口
 * </p>
 *
 * @author WuMenghao
 * @since 2019-04-22
 */
public interface PlateGridReagentMapper extends BaseMapper<PlateGridReagent> {

    List<PlateGridReagentVo> selectVoList(@Param("plateId") Long plateId,@Param("gridId")Long gridId,@Param("classify") Integer classify);

    int insertBatch(@Param("items") List<PlateGridReagent> reagents);

    int updateBatch(@Param("items") List<PlateGridReagent> reagents);

    int updateAliasBatch(@Param("items") List<Alias> aliases);

    List<PlateGridReagent> selectListByPlateId(@Param("plateId") Long plateId);

    List<PlateGridReagentVo> selectVoListByGridIds(@Param("gridIds") List<Long> gridIds);

    List<Long> selectPlateGridIdList(Long plateId);
}
